<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
	$(document).ready(function(){
		$("#writeImg").click(function(){
			if($("#title").val()==""){
				alert("제목을 입력하세요!");
				return;
			}else if($("#content").val()==""){
				alert("내용을 입력해주세욤~");
				return;
			}
			$("#writeForm").submit();
		});
		$(".action[name=cancel]").click(function(){
			//alert("cancel");
			$("#writeForm")[0].reset();
		});
	});
</script>
<h3>무비 포럼 - 등록</h3>
<hr align="left" width="150">
<center>
<form action="write.do" method="post" id="writeForm"  >
 <input type="hidden" name="memberEmail"value="${sessionScope.mvo.email}">
 <table class="inputForm" >
    <tbody>    
	<tr>
		<td>제목</td>		
		<td><input type="text" name="title" id="title"></td>
	</tr>
	<tr>
		<td>닉네임</td>
		<td><input type="text" name="nick" value="${sessionScope.mvo.nick }"></td>
	</tr>
	<!-- <tr>
		<td>이미지 업로드</td>
		<td><input type="file" name="img" size="48"></td>
	</tr>
	<tr>
		<td>동영상 업로드</td>
		<td><input type="file" name="file" size="48"></td>
	</tr> -->
	<tr>
		<td colspan="4" align="left">				 
			<textarea cols="53" rows="15" name="content"></textarea>
		</td>
	</tr>
	<tr>
		<td  colspan=2 >
			<img id="writeImg" src="${initParam.root}img/write_btn.jpg"/>
			<img class="action"	src="${initParam.root}img/cancel.gif" name="cancel"> 		
		</td>
	</tr>
	</tbody>
 </table> 
 </form>
 </center>